import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text("DEmo"),
          ),
          body: const HomeContent()),
    );
  }
}

class HomeContent extends StatelessWidget {
  const HomeContent({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    var imgUrl = "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fww2.sinaimg.cn%2Fmw690%2F006XoSMzgy1gw39iieayfj30u00u00xu.jpg&refer=http%3A%2F%2Fwww.sina.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1638628179&t=8860c04cf74cd2f2aee6d89355febbff";
    return Center(
      child: Container(

        // child: Image.network(
        //   imgUrl,
        //   // repeat: ImageRepeat.repeat,
        // ),
        decoration: BoxDecoration(
          borderRadius: const BorderRadius.all(Radius.circular(30)),
          image: DecorationImage(image: NetworkImage(imgUrl))

        ),

      ),
    );
  }
}
